﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace EFModel.Migrations
{
    public partial class lo1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_major_change_human_file_human_id",
                table: "major_change");

            migrationBuilder.DropIndex(
                name: "IX_major_change_human_id",
                table: "major_change");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateIndex(
                name: "IX_major_change_human_id",
                table: "major_change",
                column: "human_id");

            migrationBuilder.AddForeignKey(
                name: "FK_major_change_human_file_human_id",
                table: "major_change",
                column: "human_id",
                principalTable: "human_file",
                principalColumn: "huf_id",
                onDelete: ReferentialAction.Restrict);
        }
    }
}
